package com.sweetsourfish.crm.activity.service;

import com.sweetsourfish.crm.activity.model.Activity;

import java.util.List;

public interface ActivityService {

    /*id获取*/
    Activity queryById(String id);

    /*分页查询*/
    List<Activity> queryPage(String name,String owner,String startDate,String endDate,Integer pageNum,Integer pageSize);


    /*总行数*/
    Integer queryListCount(String name,String owner,String startDate,String endDate);

    //添加
    int addActivity(Activity activity);

    //修改（编辑）
    int modifyActivity(Activity activity);

    //删除
     int deleteById(String[] ids);

    //用来PoiTest测试类里面保存数据
    int saveActivityList(List<Activity> activities);

    //批量文件下载导出
    List<Activity> queryAll();
     //根据id进行查询
    List<Activity> queryByIds(String[] ids);


}
